#!python
#
# Pyste file for osg::MFVec2T (for various values T).

Import("Field.pyste")

MField = Template('osg::MField', 'OpenSG/OSGMFVecTypes.h')

for type in ['ub', 'b', 'us', 's', 'f', 'd', 'ld']:
   name = 'Vec2%s' % type
   c = MField('osg::' + name)
   rename(c, 'MF' + name)
   set_policy(c.getType, return_internal_reference(1))
   set_policy(c.getContentType, return_internal_reference(1))
   set_policy(c.getValueByStr, return_internal_reference(1))
   set_policy(c.getValue, return_internal_reference(1))
   set_policy(c.getValues, return_internal_reference(1))
   set_policy(c.front, return_internal_reference(1))
   set_policy(c.back, return_internal_reference(1))
   exclude(c.syncWith)
   exclude(c.copyToBin)
   exclude(c.copyFromBin)
